package com.dayu.finecomm.aop.adapt.mongo;

/**
 * AOP日志记录字段
 * 
 * @author XuJialiang
 * @since 2017-11-10 14:45:12
 * @version V1.0.0
 */
public class AopFields extends AopBasic<AopFields> {
	private static final long serialVersionUID = 1L;

	/**
	 * 方法名称
	 */
	public static final String FIELD_NAME = "name";

	/**
	 * 方法路径
	 */
	public static final String FIELD_PATH = "path";

	/**
	 * 参数
	 */
	public static final String FIELD_ARGS = "args";

	/**
	 * 返回结果
	 */
	public static final String FIELD_RESULT = "result";

	/**
	 * 请求起始时间
	 */
	public static final String FIELD_REQTIME = "reqTime";

	/**
	 * 返回时间
	 */
	public static final String FIELD_RSPTIME = "rspTime";

	/**
	 * 耗时
	 */
	public static final String FIELD_CONSUME = "consume";

	public void setName(String name) {
		put(FIELD_NAME, name);
	}

	public String getName() {
		return getString(FIELD_NAME);
	}

	public void setPath(String path) {
		put(FIELD_PATH, path);
	}

	public String getPath() {
		return getString(FIELD_PATH);
	}

	public void setArgs(String args) {
		put(FIELD_ARGS, args);
	}

	public String getArgs() {
		return getString(FIELD_ARGS);
	}

	public void setResult(String result) {
		put(FIELD_RESULT, result);
	}

	public String getResult() {
		return getString(FIELD_RESULT);
	}

	public void setReqTime(Long time) {
		put(FIELD_REQTIME, time);
	}

	public Long getReqTime() {
		return getLong(FIELD_REQTIME);
	}

	public void setRspTime(Long time) {
		put(FIELD_RSPTIME, time);
	}

	public Long getRspTime() {
		return getLong(FIELD_RSPTIME);
	}

	public void setConsume(Long time) {
		put(FIELD_CONSUME, time);
	}

	public Long getConsume() {
		return getLong(FIELD_CONSUME);
	}
}
